// 导航栏基础样式
.nav {
  width: 100%;
  z-index: $z-index-fixed;

  &--transparent {
    .nav-main {
      background-color: rgba($color: #000000, $alpha: 0.7);
    }
  }
}

// 顶部工具栏
.nav-toolbar {
  width: 100%;
  height: 30px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: $background-color-dark;
  color: $text-secondary;
  font-size: $font-size-small;
  z-index: $z-index-fixed;

  .container {
    @include flex-between;
    height: 100%;
    max-width: $container-width;
    margin: 0 auto;
    padding: 0 $spacing-base;
    width: 100%;
  }

  &__right {
    display: flex;
    align-items: center;
    gap: $spacing-base;
  }
}

// 主导航栏
.nav-main {
  width: 100%;
  height: 80px;
  position: fixed;
  top: 30px;
  left: 0;
  right: 0;
  background-color: $background-color-white;
  z-index: $z-index-fixed;

  .container {
    @include flex-between;
    height: 100%;
    max-width: $container-width;
    margin: 0 auto;
    padding: 0 $spacing-base;
    width: 100%;
  }
}

// Logo
.nav-logo {
  img {
    height: 45px;
    cursor: pointer;
  }
}

// 导航菜单
.nav-menu {
  flex: 1;
  margin: 0 40px;

  :deep(.el-menu) {
    background-color: transparent;
    border: none;
    display: flex;
    justify-content: center;
  }

  :deep(.el-menu-item),
  :deep(.el-submenu__title) {
    font-size: $font-size-base;
    color: $text-regular;
    height: 80px;
    line-height: 80px;
    padding: 0 $spacing-large;

    &:hover,
    &.is-active {
      color: $primary-color;
      background-color: transparent;
    }
  }
}

// 用户区域
.nav-user {
  .user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;

    img {
      width: 20px;
      height: 20px;
      object-fit: cover;
    }
  }

  .auth-buttons {
    display: flex;
    gap: $spacing-base;
  }
}

// 响应式设计
@include respond-to('medium') {
  .nav-menu {
    display: none;
  }

  .container {
    padding: 0 $spacing-mini;
  }
} 